package spring_Proxydemo1.Proxydemo1;


//静态代理
public class CalculatorProxy implements Calculator{
    private CalculatorImpl target;

    public CalculatorProxy() {
    }

    public CalculatorProxy(CalculatorImpl target) {
        this.target = target;
    }

    @Override
    public void add(int i, int j) {
        target.add(i, j);
        System.out.println("HelloWord!");

    }
}
